package ${package.Service};

import ${package.Entity}.${entity};
import ${superServiceClassPackage};
import java.util.List;

/**
* <p>
    * ${table.comment!} 服务类
    * </p>
*
* @author ${author}
* @since ${date}
*/
<#if kotlin>
interface ${table.serviceName} : ${superServiceClass}<${entity}>
<#else>
public interface ${table.serviceName} extends ${superServiceClass}<${entity}> {

    /**
    * 查询${table.comment!}列表
    *
    * @param ${entity?uncap_first} ${table.comment!}对象
    * @return ${table.comment!}集合
    */
    List<${entity}> select${entity}List(${entity} ${entity?uncap_first});

    /**
    * 通过ID查询${table.comment!}信息
    *
    * @param id ${table.comment!}ID
    * @return ${table.comment!}信息
    */
    ${entity} select${entity}ById(Long id);

    /**
    * 新增${table.comment!}
    *
    * @param ${entity?uncap_first} ${table.comment!}对象
    * @return 结果
    */
    boolean insert${entity}(${entity} ${entity?uncap_first});

    /**
    * 修改${table.comment!}
    *
    * @param ${entity?uncap_first} ${table.comment!}对象
    * @return 结果
    */
    boolean update${entity}(${entity} ${entity?uncap_first});

    /**
    * 删除${table.comment!}信息
    *
    * @param id ${table.comment!}ID
    * @return 结果
    */
    boolean delete${entity}ById(Long id);

    /**
    * 批量保存${table.comment!}数据
    *
    * @param list ${table.comment!}列表
    * @return 结果
    */
    boolean save${entity}Batch(List<${entity}> list);
}
</#if>